package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GrowMapper;
import com.ruoyi.system.domain.Grow;
import com.ruoyi.system.service.IGrowService;

/**
 * 成长记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-19
 */
@Service
public class GrowServiceImpl implements IGrowService 
{
    @Autowired
    private GrowMapper growMapper;

    /**
     * 查询成长记录
     * 
     * @param growId 成长记录主键
     * @return 成长记录
     */
    @Override
    public Grow selectGrowByGrowId(Long growId)
    {
        return growMapper.selectGrowByGrowId(growId);
    }

    /**
     * 查询成长记录列表
     * 
     * @param grow 成长记录
     * @return 成长记录
     */
    @Override
    public List<Grow> selectGrowList(Grow grow)
    {
        return growMapper.selectGrowList(grow);
    }

    /**
     * 新增成长记录
     * 
     * @param grow 成长记录
     * @return 结果
     */
    @Override
    public int insertGrow(Grow grow)
    {
        return growMapper.insertGrow(grow);
    }

    /**
     * 修改成长记录
     * 
     * @param grow 成长记录
     * @return 结果
     */
    @Override
    public int updateGrow(Grow grow)
    {
        return growMapper.updateGrow(grow);
    }

    /**
     * 批量删除成长记录
     * 
     * @param growIds 需要删除的成长记录主键
     * @return 结果
     */
    @Override
    public int deleteGrowByGrowIds(Long[] growIds)
    {
        return growMapper.deleteGrowByGrowIds(growIds);
    }

    /**
     * 删除成长记录信息
     * 
     * @param growId 成长记录主键
     * @return 结果
     */
    @Override
    public int deleteGrowByGrowId(Long growId)
    {
        return growMapper.deleteGrowByGrowId(growId);
    }
}
